package Servlet_Agent;

import JDBC_Agent.JdbcCollects;
import JDBC_Agent.MySqlDriverAgent;

import java.lang.instrument.Instrumentation;

public class AgentStart {
    public static void premain(String args,
                               Instrumentation instrumentation) {
        System.out.println("监控开启");
//        HttpCollect httpCollect = new HttpCollect();
//        System.out.println(HttpCollect.class.getCanonicalName());
        instrumentation.addTransformer(new HttpCollect());
        instrumentation.addTransformer(new MySqlDriverAgent());
    }
}
